﻿using System.Web.Mvc;


namespace Mundialeitor2.Helpers
{
    public static class MyHelper
    {
        public static MvcHtmlString Image(this HtmlHelper helper, string code)
        {
            var img = new TagBuilder("img");

            img.Attributes.Add("src", "http://static.flag-sprites.com/i/blank.gif");
            img.Attributes.Add("class", "flag flag-" + code);
            img.Attributes.Add("alt", code);

            return new MvcHtmlString(img.ToString());
        }
    }
}